home *** CD-ROM | disk | FTP | other *** search
- Path: druid.borland.com!usenet
- From: pete@borland.com (Pete Becker)
- Newsgroups: comp.lang.c++
- Subject: Re: Bizzare C++ bug...PLEASE CHECK IT OUT
- Date: 19 Feb 1996 18:01:27 GMT
- Organization: Borland International
- Message-ID: <4gadtn$ddp@druid.borland.com>
- References: <4fsns9$8ga3@flute.aix.calpoly.edu> <4g56r1$ep5@druid.borland.com> <4g86ha$fq9@btree.brooktree.com>
- NNTP-Posting-Host: pbecker.borland.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=ISO-8859-1
- X-Newsreader: WinVN 0.99.5
-
- In article <4g86ha$fq9@btree.brooktree.com>, sasha@brooktree.com says...
- >
- >pete@borland.com (Pete Becker) wrote:
- >[deleted]
- >
- >>B::B()
- >>{
- >> f(); // calls A::f, despite existence of C::f
- >>}
- >
- >You meant C:C()
- >{
- > f();
- >}
- >
- >didn't you ?
- >
- >
-
- No. That would call C::f. The point is that in B's constructor, the call to
- f() is not virtual.
-
-